Skip to content

fix(opencode): use toLowerCase for Devstral model detection#33109

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
Robin1987China:fix-devstral-locale
Jun 20, 2026
Merged

fix(opencode): use toLowerCase for Devstral model detection#33109
rekram1-node merged 1 commit into
anomalyco:devfrom
Robin1987China:fix-devstral-locale

Conversation

@Robin1987China

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #33108

Type of change

  • Bug fix

What does this PR do?

Changes toLocaleLowerCase() to toLowerCase() in the Devstral model detection check (packages/opencode/src/provider/transform.ts:221). The adjacent Mistral check on line 220 already uses toLowerCase(), and every other model-id check in this file does too. toLocaleLowerCase() is locale-sensitive — in Turkish locale it converts I to ı (dotless i), which would cause includes("devstral") to fail.

How did you verify your code works?

  • bun turbo typecheck: all 29 packages pass

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

toLocaleLowerCase is locale-sensitive and can break model-id matching
in Turkish locale (I -> ı). Every other model-id check in this file
already uses toLowerCase.

Closes anomalyco#33108
@rekram1-node rekram1-node merged commit babe507 into anomalyco:dev Jun 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Devstral model detection uses toLocaleLowerCase instead of toLowerCase

3 participants